import request from '@/utils/request'

// 领取优惠券
export function apiCouponGet(data: any) {
    return request.post({ url: '/coupon/receive', data: data })
}

// 领券中心
// export const apiCouponList = params => request.get('coupon/lists', { params })
export function apiCouponList(data: any) {
    return request.get({ url: '/coupon/lists', data: data })
}

export function apiMyCouponList(data: any) {
    return request.get({ url: '/coupon/my', data: data })
}


export function orderCoupon(data: any) {
    return request.post({ url: '/coupon/orderCoupon', data: data })
}

// 优惠券列表【订单结算】
// export const apiCouponGoods = params => request.post('coupon/orderCoupon', params)